cleaned up esummary parser a little