recovery,encypt, cleanup