added recursive flag to cp