move getKeys to the right module