added ability to disable cache