asserting non null uri
validating args and nicer output layout