changed nodehop and matchchild to take in buffer