implemented the APiHandler.php class