message writer from threads