working on getForeignStateHistory