added thread for responsehandler