continuing to put together a more generic post query generator