replaces old gethtmepath with new service and method