full overhaul, make linux-friendly, add sftp creation