pie module working