fix problems with anon classes
allow constructors to be sealed