better registerConfig implementation for handling network failure.