first cut at saving local state