fixing the pillar.example and implementing some improvements