add autorization functions