fix a few crashes
install and packages targets