script supports path, retry and sleep