making use of listenToOnce optimized code #264