try with URI, handles more cases