more safe urlconnection