coding mistake, check if should_publish after subscribe is called