refactored ssh and sftp class variables; tweaked a few log statements