minor edits to analyze_pst