allow specifying size of tail buffer