added safe copy, and did file checking within transfer files