add support for content in subdirectories