move some struct to queued.h