added messages and warnings