add flag to ensure the callback is __never__ invoked twice