parametrize set output command
add configurable stack trace printing