modified methods in SFTPConnector.java