improved posting logic