fleshing out the publish task