cp command, state.add_cache