diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 5cc18f2..8093ef9 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -16,8 +16,6 @@
   
     
       
-      
-      
       
     
@@ -37,43 +35,17 @@
       
         
           
-            
-              
+            
+              
             
           
         
       
-      
-        
-          
-            
-              
-            
-          
-        
-      
-      
-        
-          
-            
-              
-              
-                
-              
-            
-          
-        
-      
-      
-        
-          
-        
-      
       
         
           
-            
-              
+            
+              
               
                 
               
@@ -81,16 +53,11 @@
           
         
       
-      
-        
-          
-        
-      
       
         
           
-            
-              
+            
+              
               
                 
               
@@ -98,29 +65,6 @@
           
         
       
-      
-        
-          
-        
-      
-      
-        
-          
-            
-              
-            
-          
-        
-      
-      
-        
-          
-            
-              
-            
-          
-        
-      
     
   
   
@@ -134,50 +78,42 @@
         
         
         
-        
         
         
+        
         
       
     
   
   
-    
-    
-    
-    
+    
+    
+    
+    
   
+  
   
     
       
     
     
+-
+
-
+
-            
-
-
-            
-            
-
-
-
-            
           
           
         
       
-      
     
   
   
@@ -230,6 +166,7 @@
       
       
       
+      
     
     
       1557063528491
@@ -266,28 +203,35 @@
       
       1557067359327
     
-    
+    
+      1557128368242
+      
+      
+      
+      1557128368242
+    
+    
     
   
   
-    
+    
   
   
-    
+    
     
     
-      
+      
       
       
       
       
-      
+      
       
       
       
       
       
-      
+      
       
       
       
@@ -306,7 +250,8 @@
     
     
     
-    
+    
+    
   
   
     
@@ -323,13 +268,7 @@
         
       
     
-    
-      
-        
-          
-        
-      
-    
+    
     
       
         
@@ -337,26 +276,8 @@
         
       
     
-    
-      
-        
-          
-          
-            
-          
-        
-      
-    
-    
-      
-        
-          
-        
-      
-    
-    
-      
-    
+    
+    
     
       
         
@@ -374,20 +295,28 @@
         
       
     
-    
-      
-    
+    
     
       
-        
-          
+        
+          
+        
+      
+    
+    
+      
+        
+          
+          
+            
+          
         
       
     
     
       
-        
-          
+        
+          
           
             
           
diff --git a/src/main.cpp b/src/main.cpp
index 666defd..20caa1b 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -4,50 +4,62 @@
 #include "API.h"
 #include "Logger.h"
 
-int main() {
-    API api;
-    Logger logger;
+int main(int argc, char *argv[]) {
+
+    if(argc > 1){
+        std::string firstarg(argv[1]);
+        if (firstarg == "-h" || firstarg == "--help"){
+            std::cout << "help page: " << std::endl << "[-h] [--help]  print this help page" << std::endl << "[-v] [--version] print the software version" < args;
-            args.add("name", "luki.dynu.net");
-            args.add("ipv4Address", ip);
+                static std::string domainid = "8506047"; //id of the dynu domain
 
-            std::vector headers;
-            headers.push_back("accept: application/json");
-            headers.push_back("User-Agent: Mozilla/5.0 (compatible; Rigor/1.0.0; http://rigor.com)");
-            headers.push_back("API-Key: 88vNpMfDhMM2YYDNfWR1DNYfRX9W6fYg");
+                Hashmap args;
+                args.add("name", "luki.dynu.net");
+                args.add("ipv4Address", ip);
 
-            std::string dynurepl = api.request("https://api.dynu.com/v2/dns/" + domainid, true, args, headers);
+                std::vector headers;
+                headers.push_back("accept: application/json");
+                headers.push_back("User-Agent: Mozilla/5.0 (compatible; Rigor/1.0.0; http://rigor.com)");
+                headers.push_back("API-Key: 88vNpMfDhMM2YYDNfWR1DNYfRX9W6fYg");
 
-            std::cout << "[ DEBUG ] api reply:: " << dynurepl << std::endl;
+                std::string dynurepl = api.request("https://api.dynu.com/v2/dns/" + domainid, true, args, headers);
 
-            if (dynurepl != "{\"statusCode\":200}") {
-                logger.logToLogfile(" [ERROR] failed to write ip to dynu api!");
+                std::cout << "[ DEBUG ] api reply:: " << dynurepl << std::endl;
+
+                if (dynurepl != "{\"statusCode\":200}") {
+                    logger.logToLogfile(" [ERROR] failed to write ip to dynu api!");
+                }
+
+                logger.safeip(ip);
             }
-
-            logger.safeip(ip);
         }
     }