reorganize package install tasks