minor tweaks to POST message handling