an extension for SDL viewer