add header/footer for publishing message