remove old Api class