change setup directive method.