enable callbacks of listen function