missed a console.log/trycatch, maybe we should put the trycatch function into it's own file?