debugged pie directive