added support for uri templates