added parse_hostport which I forgot to commit before