add update functionality
fix missing fetch_pkgs function