preview working, cf. issue #4