pattern options are now constructed in utils.py for both at and dx