changed edge bounce to use pubsub