fixed some arduino bugs introduced by former merge