make it compalitble with pelican 3.1.1