work in progress, now need to make pubsub work fine
deeper down the rabbit hole