cleanup lines in api.php