diff --git a/glrdomon.go b/glrdomon.go
index 7c7b1f5e2b4d476f0727f699707196417af789c1..51b77a9d085f4ef79815a9f0d195c1b99a9ca441 100644
--- a/glrdomon.go
+++ b/glrdomon.go
@@ -42,7 +42,7 @@ var (
 	client *godo.Client
 )
 
-func init() {
+func initConfig() {
 	flag.StringVar(&configPath, "config", "./config.json", "Path to configuration file")
 	flag.Parse()
 
@@ -77,6 +77,7 @@ func init() {
 }
 
 func main() {
+	initConfig()
 	authenticate()
 	checkAPI()