changed how typedfn history is tracked