move local copy code