pub script