added option '--retry'