adding restore method with parameter to whether restart or not