added site detection, and upgrade profiles