fixed small issues with authorization