improve formatting of some warnings