now all class constructors (mainly for JS compat and easy instantiation)