breaking down resource.d files