add examples
print stack trace when error catched