added autoRefresh