getForeignStateHistory
trimFifo
Merge pull request #86 from hobbyquaker/master

working on history