emit prototypes, assuming single inheritance