fixed arduino patch, work in progress