added state dump functions