fixed bug where preference changes were not properly commited
also debug -> info logging
some clean up