implemented regular scratchpad file updating