implemented task queue service, post-execution code is now pushed into the task queue (improved performance)