fixng output handling for uri types