added print stack trace as todo.