pub sub works