added implementation for state management / retrieving state bundles