modified examples ans tests to use Config object