add prettify compatible support