added relationships; closes #5