set up uri handler