improve warning output