setup
add fairly basic preview support