added limit argument to name_lookup