attempt to reduce regex complexity