we'd be better off returning a proper error message here rather than exploding.