consolidated all state into the runtime class