adaptations for api auth