i think this can be moved outside of the try/catch.