refactor pappes_web_util for publishing