admin_script refactor