break out group and chart routines into submodules