added a retry decorator on exception errors