add refresh feature suggested by coni