sftp exceptions working, but needs more work