update and remove logs and errors