error handling if config data is not received.

handling of empty configdata.
better error messages.