changed get method to handle uri when there is building uri exceptions