updated bar formatting to work with recent bar versions