publish posts -- not quite working yet