addded support for path in url