cleaning up ssh implementation
adding defaults
mostly working inproc