added a new begin/end node functionality.  some error