add listener
implement listening in master mode