emit_safe() is deprecated