added support for / and http paths