fix line indent, socket close and net to host conversion