authorize refactoring