this hopefully checks for correct codes in opt6