added missing refresh function