fixes #16, adding flag to allow for cache cleaning