added cache config and better deafults