awesome badge power again :-)
fix mro usage and all the type stuff (see also my blog post about why dir is wrong). fixes #314, fixes #86