fixes for client formatting and commonified get_print_format