better error message, closes #138