refactoring settings into seperate file