change ordering of rpush and publish