remove ioctl dependency as it's not saving much code