further improvements to viewer files