modified script for deployment to correct related barnches