changes to deploy script for publication/subscription - unfinished