marshaling task for queue