Correctly parsed the uri. still need to test it