implement the subdir field
test the subdir field