more advances toward voxel querying and clean up along the way