remove references to non-existing classes, bootstrapify