support for subdirectory-based multiple keys