throw runtime exception instead of printing the stack trace