added options for subdirectories