changes in config and widget loading

see commit messages