minor improvements to post snippet