added reg_ok permitt all