add _print_message and change import.