porting to Chisel 2.0