hooked up preview stuff