add some check to avoid duplicated installation