add warnings and errors