add pie directive