helper: fix function signature, gen: make siox-replay demo functional