updated switches for post and preview