added searching, but can't rebuild index