daemon saves and restores it's state