copying functionality

copies stuffs. need to make it so if you copy into same folder it
doesn't go infinite and crash