script for generating tags for enums
adding ioctl. not fully working