error lines not being written