fixed arduino class issues