added source groups; updated config generation