added some methods for authorization and route.