File by file refresh

@bpasquer for review