add hacky regex support