added initSettings(), cleanup