refactored api class