corrected uri resolution