initial implementation of master recovery