Please help: Monk movement still wonky

I’ve been playing age of empires for decades and still my monks wonder off and get killed in fights, even in the definitive edition how do I tell them to stop moving? I put them in a group and they wonder off to heal someone even if that gets them killed.


I would also like to be able to set monks to stand ground, so they stay at safe place behind other units, which I know to protect and where to send wounded units for healing