arduino stuff + legojs fixes