#12 add support for empty in gather_keys