add copy-mode to setup-env.sh