added the -p switch to cp command