add ssh_config, bug fixes, cleanup refactors