new lib folder, move lig.php into