add flat style support