use u_int32_t, fixed some ioctls