refactor, and expose cache
1.1.0