adds structures for regex parsing