Respect the api key.  Also, reload settings before each connect attempt- caching is evil.