update how to handle config cache
remove debug statements