WIP: generalize DEBUG_VS for GS
WIP: mark GS stuff as untested for safety