implement master recovery prodecure