lazier error handling but at least it throws a warning now