simulation: add trace helper