introduced retry decorator to make program more tolerant; changed sync's option(-S=>-s)