fixup: been calling the wrong subfunction in ioctl case