deep modification of OCM modes management + add auto up/bottom  management