bugfixes to upgrade/creating guest users