attempt to add support for API authentication