I tried adding a global $config, but still I need to define it in other classes..