fix routing for multiple groups