add batch and regular expression