improve warning outputs