lots of tweaks and fixes, added some conditions
removed old configuration classes and changed the "newconfig" package