moved history out of io