add support for auto-refresh