logging error code, removing some alerts