fixed ecsclient with listeners functions