automatic install of packages
fixed bug