better way of finding names of internal objects