fixed OPTYPE auto setup