working on ric mhe (bugs to fix)