allow user to specify the lentil buffer size