added flexible linear caching
2.0.0