update main with exception processing