clean up relation data retrieval

Tag 0.5.4