code is copied to a tmp directory when snapshots are taken so as not to confuse editors