- added more helpful error message on crash