add CS_OPT_MODE option. this allows us to change engine's mode at run-time