dump every 1000 line