added virtuals support to makeSchema.