copy and removedir mostly done