[serial] simplify code by not passing 'id' around