refactoring SFTP class