get rid of anon subclasses