local preview works