added index replacing to idle operations and fixed timer handling in index replacer