adjustments for find/replace handling