correctly handle found keys