restructing ewkAnalysis a bit