parse now takes a resource and uses its .type, ResourceLoader turns xml files into a type