more defensive code to supress errors on earlier system