move EsConsole to its own file
add index context
format fixes
add index count