debugging and copy changes