add basic api class