only count warnings once
ignore info messages in details
fixed syntax