update lib/index.php for load