refactoring for updated naming convention: rest_XYZ.php