split stats ioctl into two