added utils.obj2dict
experimental saml2 support