generalizes indexing code
add 2012 data from esdata