fixes 65: added exit code support