throwing Errors instead of strings