Added a bunch of info to preserving decotors. may have been too much. Some regex convineience