implement logics for adding/removing indexes (without synchronization yet)