update script to balance if balance URL is present