added callback functions for verify_supmax and print_functions