updated to work with viewer 2.0.0