initial commit autoftp logic