functions to erase options on deactivation and rewrite defaults on activation
fixing up activation and deactivation functions