remove php extension to refactor out template implementation