pagepublisher functions are now static and smart file cleanup added