adaptation for rivets 0.6.5
port example to rivets 0.6.5