calls back with the listening api instance