added method for retrieving id by name only. probably only used for internal objects