added code to run locally/arduino