add script to aid publishing