add localData helper (reader/writer)