refactoring settings. bugfix on graph creation