added pref to enable session restore by default