be more precise when to emit a warning (still a workaround - fix involves to not parse the string)