fixing gen_caches lookup for signals handling