added cache delete. updated some logging