changed instantiation of needlebuf to just removal of characters on reset