cleanup a bit
debug info
raise exception on failing pretty print