initial setup and copy