update to require_once, update variable naming
modify to use dataset type.
extend special groups logic