added file copy mechanism