change role on the fly