adding ability to only publish and not store