added code to move constructor to preserve the wrapHappened fields, and added debugging code
added yet more debugging code