updates to preview and doctor commands