initial merge of VLAB helper routines