This is me punting on the proper way to handle errors/copying a pattern I saw elsewhere. I'll add checks