prepare for ioctls