write as soon as we have a message