minor change to make the code work temporarily.  Still need to integrate
the preferences API