added ne group support, refactored out console output