added servo and server code