first draft of workItemHandler