updated file locks and temp files