activate narrow-to-region
use logging in categorization script