added dump of state for others to use