added *vdlimit functions + tools (patch provided by Daniel Hokka Zakrisson)