redesigned VDB structure - cleaner and debugged