any which way she did it , she had a beautiful knack of appearing just when they all needed it like mother mary when the night was cloudy , like the genie in the lamp when aladdin was in a fix , or the virgin to the people of medugorje when the town needed a million dollar tourist industry .