rename and improve print_topic tool