diff --git a/Main.hs b/Main.hs
--- a/Main.hs
+++ b/Main.hs
@@ -129,7 +129,7 @@
 initializedaemonWithPuppet :: Maybe String -> String -> IO ([Char] -> IO FinalCatalog)
 initializedaemonWithPuppet purl puppetdir = do
     LOG.updateGlobalLogger "Puppet.Daemon" (LOG.setLevel LOG.INFO)
-    let prefs = genPrefs puppetdir
+    prefs <- genPrefs puppetdir
     queryfunc <- initDaemon (prefs { puppetDBurl = purl })
     return (\nodename -> do
         o <- allFacts nodename >>= queryfunc nodename
diff --git a/puppetresources.cabal b/puppetresources.cabal
--- a/puppetresources.cabal
+++ b/puppetresources.cabal
@@ -2,7 +2,7 @@
 -- documentation, see http://haskell.org/cabal/users-guide/
 
 name:                puppetresources
-version:             0.3.0
+version:             0.3.5
 synopsis:            A program that displays the puppet resources associated to a node given .pp files.
 -- description:         
 license:             GPL-3
@@ -21,7 +21,7 @@
   ghc-options:         -rtsopts
   -- other-modules:       
   build-depends:       base >=3 && <5,
-                       language-puppet >= 0.1.8.0,
+                       language-puppet >= 0.2.0,
                        hsfacter        >= 0.2.0.0,
                        containers,
                        hslogger,
