let refresh_status_callback = ref (fun () -> ())