moved arduino connection and code upload method to an initializer in config