minor changes for ArduinoIDE comapatibility