allows connecting via a uri as the first parameter