initial work on dynamic index (just a map + list for now)