manage authorizations + bug fixes