add write to error stream