further refactoring of SQV_drawchildren
yet more refactoring