fix get_apikey() method