use an object to hold the global configuration for more convenience