remove legacy try catch and util.print