changing init method to take URI argument