added simple function to globally set apikey and username