make the resource inclusion smarter; missed commit