print and export state exit after view - git fix #83