generalize customizeVTable to support asm