resolving path/url

implement resolving path/piece and url