fixed a lot in ressource_groups.sh