refactor authorizer
adjust log type