api key in constructor fixed