start to abstract what is happening here. remove non-default options from plugin, put them in options file.