add classPrefix when writing schema