fixing issue with api-auth