move index store to interface and implementation