fixed a port etc parsing error