create task processor functions