working on integrating prefs. reverted back to dynstruct for awhile