call intialize in generatedBaseApi