backwards compatibility for a simple state object