fixed enum stuff (i think)