changed the paste structure to be able to handle more than just copying of files.