commenting out some try catch blocks to see the actual error that is occuring