take out is-preview from debug