added basic posting logic