detect uris in outputs and show accordingly