proper handling of global settings object