change set_application_privileges to set_privileges