make sure relationship are printed as ids