save state with both demos for easy swithcing