diff --git a/pypcc/i2cdirect.py b/pypcc/i2cdirect.py
index df7f7dfddef279f0fe2976154f637e51f9ea37f0..2c1ff4e4cbf2ea6ba192191e556d19afa6e5a953 100644
--- a/pypcc/i2cdirect.py
+++ b/pypcc/i2cdirect.py
@@ -1,4 +1,4 @@
-name='RECVTR_LB_TEST' #YAML config file with all register values etc
+#name='RECVTR_LB_TEST' #YAML config file with all register values etc
 
 import logging
 #import argparse
@@ -60,7 +60,7 @@ class i2cdirect():
 
     def runmethod(self,methodname):
         logging.info("Run method:"+methodname)
-        methodid=self.conf.getmethodid("methodname");
+        methodid=self.conf.getmethodid(methodname);
         var1=self.conf.getmethod(methodid)
         drv=var1.get('drivercls');
         for inst in var1['instructions']:
@@ -96,4 +96,4 @@ class i2cdirect():
 
                     continue;
                 logging.warn("Unknown instruction "+key)
-        return
\ No newline at end of file
+        return