added logic to allow for release candidate upgrading