run history in the background