improved plotting and new utilities