cleanup
previewer error detection