add observer to wait for config change