error check on publishing new version