update for new version of Data.Foreign