call the callback function instead of emiting hardcoded events