completed switch/case for uri types