improve dump and print.