fixing relative path in lib.php