remove all settings when unloading provider
fix typos, quote path when running under Windows
move some common routines to generic algorithm class