added simple viewer and updated rest3d.convert function for fail handler