adding store flag to publish