write to htmk