add listener for caputre command from server