fix base api class