replacing old viewer for a better API and overall happyness