added flag for running preview