cleanup pelican script