added scopeMatchToFile and logCondition functionality