less stacktrace, for a little bit of code duplication