refactoring in preperation of personal revenue/expense stats