use promise.fail instead of promise.then format in persist guide