can program every time, still ioctl errors