config loaded async using promises