diff --git a/agent/lib/agent.rb b/agent/lib/agent.rb
index <HASH>..<HASH> 100644
--- a/agent/lib/agent.rb
+++ b/agent/lib/agent.rb
@@ -21,7 +21,14 @@ class Agent
         attr_accessor :agent_root
     end
 
-    attr_accessor :agent_root
+    def agent_root
+        self.class.agent_root
+    end
+
+    def agent_root=(path)
+        self.class.agent_root = path
+    end
+
     attr_accessor :manager_uri, :uuid, :mac_address
 
     def self.create(uri = nil, root_dir = nil, use_config = true)
delegate to class methods for agent_root attr