properly include resources in subdirectories