add more logging, revert to katproxy, implement cache