cleanup err messages