refresh counter added, cleanup