new: working on implementing pubsub eventhandler etc