main purpose was to get rid of these try catch blocks, which are very bad to read.