remove try catch in main loop