categorizer worker functional