new send to file and other changes