add support for path on custom endpoint