use new preferences module