cleanup errcheck warnings