trying to avoid file locks