add errors and warnings