prepare for cp command