[bugfix] (#4) await file save for redirection