increase buffer to 2000000 like before