use old set_permissions