add link to writemsg