check for read retval
added servo control