code cleaned up, dalli client can be configured now