work sequentially through files