diff --git a/lib/Model.php b/lib/Model.php
index <HASH>..<HASH> 100644
--- a/lib/Model.php
+++ b/lib/Model.php
@@ -54,7 +54,7 @@
  * @license See http://agiletoolkit.org/about/license
  * 
  **/
-class Model extends AbstractModel implements ArrayAccess,Iterator {
+class Model extends AbstractModel implements ArrayAccess,Iterator,Serializable {
 
     public $default_exception='BaseException';
 
@@ -605,7 +605,7 @@ class Model extends AbstractModel implements ArrayAccess,Iterator {
                 $class,
                 null,
                 $id
-            );
+            )->tryLoadAny();
         }
     }
     function _ref($ref,$class,$field,$val){
@@ -613,7 +613,6 @@ class Model extends AbstractModel implements ArrayAccess,Iterator {
             ->add($this->api->normalizeClassName($class,'Model'))
             ->ref($ref);
         $m->addCondition($field?:$m->id_field,$val);
-        $m->tryLoadAny();
         return $m;
     }
     /* Join Binding
@@ -703,4 +702,19 @@ class Model extends AbstractModel implements ArrayAccess,Iterator {
         }
         return $m->load($this[$our_field]);
     }
+
+
+
+    function serialize() {
+        return serialize(array(
+            'id'=>$this->id,
+            'data'=>$this->data
+        ));
+    }
+
+    function unserialize($data) {
+        $data=unserialize($data);
+        $this->id=$data['id'];
+        $this->data=$data['data'];
+    }
 }
allow (un)serialization of models. Fix mongo's ref