diff --git a/bin/cdist b/bin/cdist
index 78893b60..0705f5bd 100755
--- a/bin/cdist
+++ b/bin/cdist
@@ -101,6 +101,9 @@ def install(args):
 
 def configinstall(args, mode):
     """Configure or install remote system"""
+    import multiprocessing
+    import time
+
     try:
         process = {}
         failed_hosts = []
@@ -188,11 +191,9 @@ def emulator():
 if __name__ == "__main__":
     try:
         import logging
-        import multiprocessing
         import os
         import re
         import sys
-        import time
 
         log = logging.getLogger("cdist")