1.add task and callback lisener for request. 2.change directory