bugfix: changed order of provisioning and process user switch