fixes to index
more fixes for integration of jsoncpp