make common function is_installed