3 api key in constructor fix