fixes #119 - added support for global API keys