add option to set custom superclass, fixes #13