added dragout-to-file feature