reorder installing custom packages to first check single package functios and then use common function to install rest of them
add support for global handler to install missing custom packages