v2.0.4: added cfg(vtype) and cfg(vregex)