remember last location on shutdown and restore on startup