add scratch script for extracting view info