moved get_apikey_from_file into module