add support for mean subdir