add switch to enable alternative pattern syntax