this was modified from GLI version. doesn't seem to be used yet, but I'll keep it just in case. moved to admin/gui