needed to change the mask back to 0xff to get the event codes right. now it looks like 4 and 8 code for the stims for each trial