add rest.php