corrected cp command behaviour