new viz script; other minor fixes