make the regex stuff easier to read