make sure if URI is passed its used