restructure LBNode class
move control to index.php