formatting whitespace
rework socket to public of io