add local toredis, fix bug with diagonal checker