add functions for sftp