passes tests, apart from loading settings