changing around getExternalMapping somewhat