added transformPrefs fixed some typos