implemented threading and "\1" as "no changes" indicator