modify index and config