fix yle function, wrap all outside http calls in a try catch block