add relation class to wrap result sets