support old ruby versions for show_total param