progressing on caching
fixes #24 along with previous commit, beefing up logging