fixing URI endpoint