diff --git a/README.md b/README.md
index 462155c..c52ffd4 100644
--- a/README.md
+++ b/README.md
@@ -4,6 +4,7 @@
 Bot to connect badge to IRC for sharing and validating codes
 
 simply git clone this repo
+make sure you have the correct interface at top of script (default is /dev/ttyACM0)
 
 ````
 php bot.php

diff --git a/README.md b/README.md
index 462155c..c52ffd4 100644
--- a/README.md
+++ b/README.md
@@ -4,6 +4,7 @@
 Bot to connect badge to IRC for sharing and validating codes
 
 simply git clone this repo
+make sure you have the correct interface at top of script (default is /dev/ttyACM0)
 
 ````
 php bot.php
diff --git a/bot.php b/bot.php
index 4ab1f64..e22b14b 100644
--- a/bot.php
+++ b/bot.php
@@ -41,6 +41,11 @@
 
 $rand = substr(str_shuffle(str_repeat($x='0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ', ceil(8/strlen($x)) )),1,8);
 
+// announce self to channel
+$myCode = get_own_code();
+if(!isset($myCode) || $myCode == "")
+    die("Please contact 0xRoM on discord for help fixing this issue!");
+
 $socket = fsockopen("ice.uplinkcorp.net", 6667);
 // Send auth info
 // fputs($socket, "PASS " . $password . "\n");
@@ -48,10 +53,7 @@
 fputs($socket, "USER Badge-" . $rand . " 0 * :DC29 Badge Bot\n");
 fputs($socket, "JOIN #theSignal\n"); // Join channel
 
-// announce self to channel
-$myCode = get_own_code();
-if(!isset($myCode) || $myCode == "")
-    die("Please contact 0xRoM on discord for help fixing this issue!");
+
 
 fputs($socket, "PRIVMSG #theSignal :!req " . $rand . " " . $myCode . "\n");