work on processes & sockets, a few formatting cleanups for consistancy