update examples to new transys api and fix discovered bugs