changed port
simplified error handling for now
removed next statements