added basic local index builder.