massive update to type relation, I have already forgotten what all is for...