add deep copy for config
add graceful error handler
Add deep copy function
add test for google failure
Merge pull request #187 from keenlabs/bug-config

Fix configuration manipulation issue