fixes in superclass, and js compile