changed arduino server code