another try/catch added