adding an auto_refresh feature