preferences passed into constructor