get subtargets list rewriten as function & some cosmetic fixes