getting pubsub to work