dir generation in modules