support standard dir structures