adding in try catch to prevent parse errors from blowing up