finished hook, base for api.php