changed folder copy facility with bugs