added support for custom httpPath