got preferences working