persist stack when server restarts