fixed time overflow and introduced robotUpdate to avoid mismatch read/write