fix the memoizing and add a default connection block
remove hashie