caching improved, added minmax zoom