added local analysis script --  in hopes to speed things up