refresh keys, append rows