AW: simulating dynamic dispatch