moved anonymizer functionality to helper