diff --git a/artemis_sqlmap/Feature.xml b/artemis_sqlmap/Feature.xml
index ef28184206cb782325f4a5e4009e7923652d806c..b8779181c4f88e7c178d8b8026cd3fe5f91ce620 100644
--- a/artemis_sqlmap/Feature.xml
+++ b/artemis_sqlmap/Feature.xml
@@ -34,7 +34,7 @@
 	<result property="organism.organismId" column="organism_id"/>
 	<result property="featureProps" resultMap="FeatureProp.map-featureprop" />
    	<result property="featureRelationshipsForSubjectId" 
-   	            resultMap="FeatureRelationship.map-feature-relationship"  /> 
+   	            resultMap="FeatureRelationship.map-feature-relationship-for-objectId"  /> 
     <result property="featureLoc.strand" column="strand" nullValue="0"/>
     <result property="featureLoc.fmin" column="fmin" nullValue="-1"/>
     <result property="featureLoc.fmax" column="fmax" nullValue="0"/>
@@ -95,9 +95,10 @@
   <resultMap id="map-clusterfeature" class="Feature" 
 	         groupBy="featureId" extends="map-basicfeature">       
     <result property="cvTerm" column="type_id" select="getCvtermByCvTermId" />
-    <result property="featureLocsForFeatureId" resultMap="FeatureLoc.map-location" />
 	<result property="featureProps" column="{feature_id=id}" 
                                        select="getFeaturePropByFeatureId" />
+	<result property="featureRelationshipsForSubjectId" 
+   	            resultMap="FeatureRelationship.map-feature-relationship-for-subjectId"  /> 
     <result property="analysisFeatures" resultMap="AnalysisFeature.map-analysisfeature" />                                                
   </resultMap>
 	
@@ -302,9 +303,11 @@
                              resultMap="map-clusterfeature">
 	SELECT 
 	  timelastmodified, 
-	  f.feature_id AS id, 
+	  f.feature_id AS id,
+	  fr.feature_relationship_id, 
 	  fr.subject_id,
-	  fr.type_id,
+	  fr.type_id AS relation_type_id,
+	  fr.value AS relation_value,
 	  fr.rank,
 	  f.uniquename, 
 	  f.type_id, 
@@ -316,8 +319,7 @@
 	LEFT JOIN feature_relationship fr ON  f.feature_id=fr.object_id 
 	LEFT JOIN analysisfeature af ON f.feature_id=af.feature_id
 	LEFT JOIN analysis a ON af.analysis_id=a.analysis_id 
-	WHERE f.type_id=( SELECT cvterm_id FROM cvterm WHERE name='orthologous_to' ) 
-	  AND fr.subject_id IN ( SELECT feature_id  FROM featureloc WHERE srcfeature_id=$value$ )
+	WHERE f.feature_id IN <iterate open="(" close=")" conjunction=","> #[]# </iterate>
   </select>
 
   <select id="getSchema" resultClass="java.lang.String">
diff --git a/artemis_sqlmap/FeatureLoc.xml b/artemis_sqlmap/FeatureLoc.xml
index d3374cc0469e8a544cd128d55d1da5d086def024..32e4899d2527814579a5996b6519d6597caa1dd0 100644
--- a/artemis_sqlmap/FeatureLoc.xml
+++ b/artemis_sqlmap/FeatureLoc.xml
@@ -20,7 +20,7 @@
         <result property="fmin"   column="fmin"   nullValue="-999" />
         <result property="fmax"   column="fmax"   nullValue="-999" />
         <result property="strand" column="strand" nullValue="0" />
-        <result property="phase"  column="phase"  nullValue="0" />
+        <result property="phase"  column="phase" />
         <result property="residueInfo"  column="residue_info"/>
         <result property="locGroup"  column="locgroup"/>
         <result property="rank"      column="rank"/>
diff --git a/artemis_sqlmap/FeatureRelationship.xml b/artemis_sqlmap/FeatureRelationship.xml
index b9043ab3188d31dc4632db61dcb492693f6f9cf5..3bfe2c652a850eb014cda8bcce57f4eaee705723 100644
--- a/artemis_sqlmap/FeatureRelationship.xml
+++ b/artemis_sqlmap/FeatureRelationship.xml
@@ -10,16 +10,27 @@
         
      <typeAlias alias="FeatureRelationship"
         type="org.gmod.schema.sequence.FeatureRelationship"/>
-        
-     <resultMap id="map-feature-relationship" class="FeatureRelationship">
+     
+	 <resultMap id="map-basic-feature-relationship" class="FeatureRelationship">
 		<result property="featureRelationshipId" column="feature_relationship_id"/>
-        <result property="featureByObjectId.featureId" column="object_id"/>
   	    <result property="cvTerm.cvTermId" column="relation_type_id"/>
   	    <result property="rank" column="rank"/>
   	    <result property="value" column="relation_value" />
      </resultMap>
+	   
+     <resultMap id="map-feature-relationship-for-objectId" class="FeatureRelationship" 
+		        extends="map-basic-feature-relationship">
+		<result property="featureByObjectId.featureId" column="object_id"/>
+     </resultMap>
 
+	 <resultMap id="map-feature-relationship-for-subjectId" class="FeatureRelationship"
+		        extends="map-basic-feature-relationship">
+		<result property="featureBySubjectId" column="subject_id" 
+			                                  select="getLazyFeatureById"/>
+     </resultMap>
+	
     <resultMap id="select-relationship" class="FeatureRelationship">
+		<result property="featureRelationshipId" column="feature_relationship_id"/>
         <result property="featureBySubjectId.featureId" column="subject_id" />
         <result property="featureByObjectId.featureId" column="object_id" />
         <result property="value" column="value" />
@@ -29,7 +40,7 @@
      
      <!--  select feature_relationship -->
      <select id="getFeatureRelationship" resultMap="select-relationship">
-       SELECT subject_id, object_id, type_id, value, rank 
+       SELECT feature_relationship_id, subject_id, object_id, type_id, value, rank 
        FROM feature_relationship
        WHERE
          <dynamic>