change config and mlog to Singleton