perfected dump and reload for restart