added prettify compatiblity