Revert "removed preferences."

This reverts commit 7061ff79842e9ace6c88f70e00323f042e29c708.