Make --refresh=1 as a default with some minor coding changes.