copy the original prototype of the decorator class to fn so it can be modified later