added relative url support

fixed #15