Index: examples/access_rt2_typed/Alpha_ID.pem
===================================================================
--- examples/access_rt2_typed/Alpha_ID.pem	(revision da5afdf4d61c978dbd17b9d6f20e5a45dcab870a)
+++ examples/access_rt2_typed/Alpha_ID.pem	(revision e88c95b78d0ef3b0c3afe6668f42dedbb47f52a6)
@@ -1,19 +1,19 @@
 -----BEGIN CERTIFICATE-----
-MIIDBTCCAe2gAwIBAgIITR5qFxiw8dcwDQYJKoZIhvcNAQEFBQAwEDEOMAwGA1UE
-AxMFQWxwaGEwHhcNMTIwMjEwMjExNjU0WhcNMTUwMTI1MjExNjU0WjAQMQ4wDAYD
-VQQDEwVBbHBoYTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJzEKCy/
-fxEb/E4a5+ILIkEph7FBEhOm+4KwEGgPVyOPnRwqtn8R3uLoiPSpZwVx7M0XRGuK
-x3s3tl5r63GO+DUSxj9tSEEfE8q0FClUt5y5DPWY/1mmKgq21hV4LtNNc3xL0XvE
-AwFmavqdhoXhR5Juq/mkj/Mc6q0r4Ceq8q4agMTVPCUKzih6m/CiylSnrlauoP49
-IcZLnNCotJCjo/ZdMyspsr/TP5EFf4m56uxFxQEwZhhonZm0IeMHxfpf9NxEfqgg
-RxLoW4s+NnzzrTtPd83Zh34Hhqs+B8B1EMe1iuqjL1lQOz+VIlOHLPh1Nc872MbF
-eR6uO9jXU+6vjI0CAwEAAaNjMGEwDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8E
-BAMCAQYwHQYDVR0OBBYEFAdCSzb3t5iGtU3PQ4RbfUe0m383MB8GA1UdIwQYMBaA
-FAdCSzb3t5iGtU3PQ4RbfUe0m383MA0GCSqGSIb3DQEBBQUAA4IBAQCWuXwxWNHe
-l5MR5olg4eWAKXeNk9EnoxfnJVc0XRHzrN4YIpq4P7SgUT8rLLYnpRE1GbDyAcLR
-LKFx5eUqZ8oBbjnEJ4E6AmqrOXy3gAAz1kEDijUuPHb3grEgSbIk90gszQh7sf6I
-du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oMnYCB
+2rbR97Hh1/OLjRfUul11r65AGLRl3V+SDOusMsQ/J+/xKc9yiThUZQuMPpATTknq
+wL5TkopoI2ft4IdnyZF0PIlJ9vH/wkRZNxnhIwaFaq+3S4UNyg5kHSvAyDVEEaTO
+ggE/RL0XAYlxR086kzeZxfVXeFmb/hFkAu1W7qoAsmyMYZjUmGfajlENnA/qeepT
+u3lkY2X9PHJp
 -----END CERTIFICATE-----
Index: examples/access_rt2_typed/Alpha_private.pem
===================================================================
--- examples/access_rt2_typed/Alpha_private.pem	(revision da5afdf4d61c978dbd17b9d6f20e5a45dcab870a)
+++ examples/access_rt2_typed/Alpha_private.pem	(revision e88c95b78d0ef3b0c3afe6668f42dedbb47f52a6)
@@ -1,27 +1,27 @@
 -----BEGIN RSA PRIVATE KEY-----
-MIIEoQIBAAKCAQEAnMQoLL9/ERv8Thrn4gsiQSmHsUESE6b7grAQaA9XI4+dHCq2
-fxHe4uiI9KlnBXHszRdEa4rHeze2XmvrcY74NRLGP21IQR8TyrQUKVS3nLkM9Zj/
-WaYqCrbWFXgu001zfEvRe8QDAWZq+p2GheFHkm6r+aSP8xzqrSvgJ6ryrhqAxNU8
-JQrOKHqb8KLKVKeuVq6g/j0hxkuc0Ki0kKOj9l0zKymyv9M/kQV/ibnq7EXFATBm
-GGidmbQh4wfF+l/03ER+qCBHEuhbiz42fPOtO093zdmHfgeGqz4HwHUQx7WK6qMv
-WVA7P5UiU4cs+HU1zzvYxsV5Hq472NdT7q+MjQIDAQABAoH/HWSqI7nEGXEl3X8t
-+zQbOByRVKreuNCWV+qrKNe3fvNugdmAXlL7d5AiHb2lk1/JBqtWKNPckz3e89VI
-UAJ+h3T9tubGpW8uRtN89ELuKnSH+YS2XBjLyTZ+7YebQANFpAiTPqGB7sFFTbg7
-gN68jLgzhptUYkEJv256mPV0izAh0F5wc45wqKs8yCgveHKcMoFRk70V0R2Ozwua
-qXed4DtQcu/yU/8IS4kRp57gyUPIRz11HoLQaPyzuL/fK6xhMSF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WrKULai1CLzU5I+O0Epq5FSBEppMtt9wUsrOme6kG
+QFzS7zyS0vzRO9zwAz7DrsLfteZuI8iFUisqqkoRpvc2rHsYmo4omoTaMKP8O8D/
+kr29/DG0wNxK4jYOsgvpvzECgYEAjBfHgA5cwh3rK5hDMemBoEMjU78Huf84s3Rr
+2jYFH7Dwrfxxh7DpBuy5GJsg2fip1RuOxjEZyL/5j1o0LuCrMHhy4Eah7tMrwXFY
+BwClVIlA3rqA69ftZQRH/2tEsrJM7jOvB6CDmR5ARafVw1WKdCaEVYxEG7UtsZsm
+x/kD7rECgYBKB7kL9x/AGO8IWn7GnWwWrl9EbHvivyOqhIYkjnY5SyGdfwlfOd4d
+h4oryCc7NHMcFRl0eHjO8ETKHk+o+nm2HA93Nq2Eo/tgSbYEWUpqe8jfbstebrlJ
+WHHBpcbs2o0Kw+cAdYazV3R+jBRU4wqIlH/pT9CDcitDaAll/DEhqA==
 -----END RSA PRIVATE KEY-----
Index: examples/access_rt2_typed/Bob_ID.pem
===================================================================
--- examples/access_rt2_typed/Bob_ID.pem	(revision da5afdf4d61c978dbd17b9d6f20e5a45dcab870a)
+++ examples/access_rt2_typed/Bob_ID.pem	(revision e88c95b78d0ef3b0c3afe6668f42dedbb47f52a6)
@@ -1,19 +1,19 @@
 -----BEGIN CERTIFICATE-----
-MIIDATCCAemgAwIBAgIIR6O9EdpIYrIwDQYJKoZIhvcNAQEFBQAwDjEMMAoGA1UE
-AxMDQm9iMB4XDTEyMDIxMDIxMTY1NVoXDTE1MDEyNTIxMTY1NVowDjEMMAoGA1UE
-AxMDQm9iMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAxswzNSvehaWc
-k+o7fLJxwE7sdABJ3/+LVCDm0BGATwCIwcoLsM9pZPQPVnaD6GsplxHOssb0owkE
-uC4w+53ZkGf8X5gR/xZ0VHvTWv8exl/8B8EeTKWk9Zk23BiQE8nLdIgAHnkz7bZu
-pDgUCdF700uV5HdA9nc5RxQNd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Je4yjmHTr2wlSc8V86+NQE/mQmV
+Zl08sFr3sRiIR6FNZfk/tc/82wc6mryAAdpFW7TEh8yOaNBAzobHhxfEYbQ3Vwy1
+D2ibVHIUlkArj43iboO9Zh+PAxOnCwMTYjmjfK4vMch6dlSZnQWrNMgTMHUqRWTv
+NiKHatFJQwIDAQABo2MwYTAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwIB
+BjAdBgNVHQ4EFgQUY3EY3oii1M/16HNrUwjHVQQdM9kwHwYDVR0jBBgwFoAUY3EY
+3oii1M/16HNrUwjHVQQdM9kwDQYJKoZIhvcNAQEFBQADggEBALJJO3AtvkZalAxg
+GwoGGclyqJ4o1/L7JDW/cn6dwgzbKWWsk8OPth4BoVht/Tuk9wg5h2W1LtLPCc9D
+oc6P/cSbwdpO1p2A8V4ZOVNtaG+gTpJpvZi98OXcV0vG73r8IUwBCo/XOhhLo6ZO
+I7J70UnsMV+FJ/Kv3cUs+pnKyc3PFQGOTqpDLkRCrtpAU+FUfxEW8bO3hPgIQK05
+tk+cAoxGhrB1mdzsdGJGGT2V+ZgtUbY7t+d+y77Y2vg2g7MfTbVcmpsqttoCqCHo
+o8c8UOR4WydxQq+IdA+P6oulNS0HMjt/DBTN4Kr1q/nBZmKdq+52zLuGsuoCv7/t
+p94ijTA=
 -----END CERTIFICATE-----
Index: examples/access_rt2_typed/Bob_private.pem
===================================================================
--- examples/access_rt2_typed/Bob_private.pem	(revision da5afdf4d61c978dbd17b9d6f20e5a45dcab870a)
+++ examples/access_rt2_typed/Bob_private.pem	(revision e88c95b78d0ef3b0c3afe6668f42dedbb47f52a6)
@@ -1,27 +1,27 @@
 -----BEGIN RSA PRIVATE KEY-----
-MIIEpAIBAAKCAQEAxswzNSvehaWck+o7fLJxwE7sdABJ3/+LVCDm0BGATwCIwcoL
-sM9pZPQPVnaD6GsplxHOssb0owkEuC4w+53ZkGf8X5gR/xZ0VHvTWv8exl/8B8Ee
-TKWk9Zk23BiQE8nLdI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RzD5ES0xd433VxeWaS5YMno34uqpEt4Fa58gOY19wKpWasMH0
+4ZKcL1kCgYEA9LGot6mDUNz4j++DbHelNydbhAXD+iodTC8BpqsU9wu6/WLJQ8uM
+D57XYyhB57nU+0ndVTbNBR3srQvLh2tRRYxyG+E2OkW/2Ylqq5xG1IJWsHs94Ya8
+flzqOU/LNQn2t8sa5yM59Nwxo3+iOkOzyyZcNO1g8pNeWtDALYBHYyUCgYEA2oq3
+Ylu2ZDz1fYQhV2AUYsTyY6NBC6LTDyQW/rSUsK0lVUKrBmGtaFaybJPXlwyreydH
+SECM0z7ggsnXTvum6IBcK/ckYvx3HfxHBxJ6K1SRO/XuYZCMhTzXF3fFcJNiC3r3
+KjmB6ehfr7yIXagYlmBPiHjMM1x2F2UMUdI8gkcCgYAwX57XEC/hoI2TBuqYWt7S
+lHlHFEy1+/VmxjQxWsj+PddtmEXpnSfHPsOd2quMv/QW6XdUDU1ioZPUcex+jPy4
+Hxe/4znxMzDGNKBd5Lsr78hrgzGskBJbeMrlIZ0ukxWvJ/vdjd07RvyZMfZERnYY
+xzCbVgJAclnI4lPbquxx8QKBgBAAvmL+ckGu0Q8q4MIkL/n3kARJzRaMCsZ+Dw0B
+ri2t0CEJK7rg5jDQwGoA/XV7IQd4ndilmWpSnWAWZaTL+rHlzFoP0+NHt3VDpvPW
+n4mSvLvWS2lri06qYNnAFH4k3LYYgAbghSnasT8OIDIzf/FrBgfpSJKuP5uA88D+
+Ex47AoGBAJVuKEQdC5UDznvdZ6+6tr2sxVb4RqAPWPHfVuytEZsrPqZ2SuYNE/ti
+9ThHIMcJGC/lgxaVOxIUjFsT7V77rPvwHg1wLd2xkrxWRoiu3QOHpkqX6qBt6c7v
+s1yzitjO/AyAIXAni+1nfuzwKNk65bMiSgjWx5ETlZ3xYTW+L2g5
 -----END RSA PRIVATE KEY-----
Index: examples/access_rt2_typed/Joe_ID.pem
===================================================================
--- examples/access_rt2_typed/Joe_ID.pem	(revision da5afdf4d61c978dbd17b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MbR27y8Kh9OaalWkkTx
+hj0mq17WkCbZ0wvgiSzZ5rHuu7OpRkcbxD8jnIeLHmTrqHEnxPA4XO1Fvjp21dDY
+eVFE/LFR
 -----END CERTIFICATE-----
Index: examples/access_rt2_typed/Joe_private.pem
===================================================================
--- examples/access_rt2_typed/Joe_private.pem	(revision da5afdf4d61c978dbd17b9d6f20e5a45dcab870a)
+++ examples/access_rt2_typed/Joe_private.pem	(revision e88c95b78d0ef3b0c3afe6668f42dedbb47f52a6)
@@ -1,27 +1,27 @@
 -----BEGIN RSA PRIVATE KEY-----
-MIIEpAIBAAKCAQEAw0a51HD/8Sbd9F7zTPXUAPIEYcD21XSpqLUQrXJj9YquOqpl
-9rlMebiblPSpKXb/iHf/1u0GPaXcRjnSuTx018T9QXsbwRWFPTlov3cyKSi1Gug4
-NckRlaN6jlZRTp8I9y95pIFEH181/7Jll7R7VOYyKa7c4tbnIMvI1w/HJpAnSR4+
-APUKv0CGIm0VrpUA4WfXlyT+h39JSDKKAElPE8EjXFey/NLZUuftrskj269NBRYE
-qZkM2vudzCHIj1M3VdcnD2ugXvxmGnJmrDTtaPB+VmWIiaDwL/khUSwtqjCsrU3c
-q/0b7O1yhddGyA0vyhRUMBIpeEr+Q9napLR49wIDAQABAoIBADfvyYl+OQKGJKw8
-iqsv++Otb+3kjZBFk9fczgMxMksCx7fMWdrb53kylXaMwuw6xyX7YdDaIqCEI14G
-cENZewrXxcf9EM01ce5AxK2b4kWCAKbNgFR/3UalBpVBSpcf3TyZX9nsoWvvJROy
-sYFMVMvUCOiBy4o7DwgI9+YLAfwcbCCpUkq5chZol5y4J6tjN7HYMnFIuAXGwoDO
-P//5GV0OXe3ObRsg7eNYX34EVtgCxIp36G1gkLfGmi9byBKthc9ypjxaO8VsjAKn
-JG25Vle0IO6qJtuhX21VfgOT9pjjfLIlJjew3Nl05r0OMPeSdGwh5zitRvVRm1F+
-wNWP+8ECgYEA+NPe+B0rGiouT84a7PySIlXOKOHgsRXEF8LME10us99s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aOF1JtcSVYPXUic4SHJvITOsgb7SoF9
+jA3BYCoPJ84NJrgw2QhHsRQ013woHheC2XW02gUNRC3JBYjys3QAOgbhnsUsWTup
+I+za/sVb4u/WoevwWxnjWY8hZUSQkfJdca08Xscqcov8lHIvQ+Uz4CovfMaJjWUQ
+ChomKQKBgCzZRJHZCD+VIgWXhDAoNMiHSWz47dG/NVR5cVTPHmdvmEbtpRaM77H/
+CE6WKdUShgZBZQfR3TA79E6GHzXKDyk1OJ24BmWb7mNKBEktmLcMlDiifxJn0PeO
+8asc9DQQnn3+Tb8Rs3dHy2gyBitSp//7ehG9vkVfddlcqAvvce2V
 -----END RSA PRIVATE KEY-----
Index: examples/access_rt2_typed/d
===================================================================
--- examples/access_rt2_typed/d	(revision da5afdf4d61c978dbd17b9d6f20e5a45dcab870a)
+++ 	(revision )
@@ -1,21 +1,0 @@
-
-rm -rf creds_dump
-
-eloc=/home/mei/Deter/abac/libabac
-keyloc=/home/mei/Deter/abac/examples/access_rt2_typed
-
-alpha=`creddy --keyid --cert $keyloc/Alpha_ID.pem`
-bob=`creddy --keyid --cert $keyloc/Bob_ID.pem`
-joe=`creddy --keyid --cert $keyloc/Joe_ID.pem`
-
-bob_prin="[keyid:$bob]"
-
-access_fileA="[keyid:$alpha].role:access([string:'read'],[urn:'file//fileA'])"
-team_proj2="[keyid:$alpha].role:team([string:'proj2'])"
-bob_prin="[keyid:$bob]"
-joe_prin="[keyid:$joe]"
-
-## dump all credentials
-$eloc/abac_prover_yap  --keystore $keyloc --dump creds_dump
-
-
Index: examples/access_rt2_typed/db.pl
===================================================================
--- examples/access_rt2_typed/db.pl	(revision da5afdf4d61c978dbd17b9d6f20e5a45dcab870a)
+++ 	(revision )
@@ -1,24 +1,0 @@
-isMember(A,role(pAlpha,access,read,C),B) :-
-   isMember(A,role(pAlpha,team,E),D),
-   appendL([['W2tleWlkOjc0MGIwMWM5OThkMjFmYTllY2ZlZTJjZmYyNWRkOGIzODk5ODZjMDNdLnJvbGU6YWNjZXNzKFtzdHJpbmc6J3JlYWQnXSxbdXJuOj9Ge1trZXlpZDo3NDBiMDFjOTk4ZDIxZmE5ZWNmZWUyY2ZmMjVkZDhiMzg5OTg2YzAzXS5vc2V0OmRvY3VtZW50cyhbc3RyaW5nOj9QXSl9XSkgPC0gW2tleWlkOjc0MGIwMWM5OThkMjFmYTllY2ZlZTJjZmYyNWRkOGIzODk5ODZjMDNdLnJvbGU6dGVhbShbc3RyaW5nOj9QXSk='],F,D],B),
-   isType(pAlpha,keyid),
-   isMember(C,oset(pAlpha,documents,E),F).
-isMember('file//fileA',oset(pAlpha,documents,proj1),['W2tleWlkOjc0MGIwMWM5OThkMjFmYTllY2ZlZTJjZmYyNWRkOGIzODk5ODZjMDNdLm9zZXQ6ZG9jdW1lbnRzKFtzdHJpbmc6J3Byb2oxJ10pIDwtIFt1cm46J2ZpbGUvL2ZpbGVBJ10=']) :-
-   isType(pAlpha,keyid).
-isMember(pBob,role(pAlpha,team,proj1),['W2tleWlkOjc0MGIwMWM5OThkMjFmYTllY2ZlZTJjZmYyNWRkOGIzODk5ODZjMDNdLnJvbGU6dGVhbShbc3RyaW5nOidwcm9qMSddKSA8LSBba2V5aWQ6YWY0MGQ3N2Y1YjMwYTk3OTQ4NGY4YmJiZmI0MDg0MDgxN2EzM2E2N10=']) :-
-   isType(pAlpha,keyid),
-   isType(pBob,keyid).
-isMember(pJoe,role(pAlpha,team,proj2),['W2tleWlkOjc0MGIwMWM5OThkMjFmYTllY2ZlZTJjZmYyNWRkOGIzODk5ODZjMDNdLnJvbGU6dGVhbShbc3RyaW5nOidwcm9qMiddKSA8LSBba2V5aWQ6N2Y1YzY4YzEyNTUxZmI2NmU3YmYxNWVmMzY0YjQ2MjI1NDE5MDkzYl0=']) :-
-   isType(pAlpha,keyid),
-   isType(pJoe,keyid).
-isType(pAlpha,keyid).
-isType(pBob,keyid).
-isType(pJoe,keyid).
-appendL([],[]).
-appendL([B|C],A) :-
-   appendL(C,D),
-   append(B,D,A).
-append([],A,A).
-append([B|C],A,[B|D]) :-
-   append(C,A,D).
-
Index: examples/access_rt2_typed/db2.pl
===================================================================
--- examples/access_rt2_typed/db2.pl	(revision da5afdf4d61c978dbd17b9d6f20e5a45dcab870a)
+++ 	(revision )
@@ -1,27 +1,0 @@
-isMember(A,role(pAlpha,access,read,C),B) :-
-   isMember(A,role(pAlpha,team,E),D),
-   appendL([['original cert'],F,D],B),
-   isType(pAlpha,keyid),
-   isMember(C,oset(pAlpha,documents,E),F).
-isMember('file//fileA',oset(pAlpha,documents,proj1),['oset cert']) :-
-   isType(pAlpha,keyid).
-isMember(pBob,role(pAlpha,team,proj1),['bob cert']) :-
-   isType(pAlpha,keyid),
-   isType(pBob,keyid).
-isMember(pJoe,role(pAlpha,team,proj2),['joe cert']) :-
-   isType(pAlpha,keyid),
-   isType(pJoe,keyid).
-isMember(pJoe,role(pAlpha,team,proj1),['joe cert 2']) :-
-   isType(pAlpha,keyid),
-   isType(pJoe,keyid).
-isType(pAlpha,keyid).
-isType(pBob,keyid).
-isType(pJoe,keyid).
-appendL([],[]).
-appendL([B|C],A) :-
-   appendL(C,D),
-   append(B,D,A).
-append([],A,A).
-append([B|C],A,[B|D]) :-
-   append(C,A,D).
-
Index: examples/access_rt2_typed/r
===================================================================
--- examples/access_rt2_typed/r	(revision da5afdf4d61c978dbd17b9d6f20e5a45dcab870a)
+++ 	(revision )
@@ -1,15 +1,0 @@
-
-rm -rf creds_dump
-
-eloc=/home/mei/Deter/abac/libabac
-keyloc=/home/mei/Deter/abac/examples/access_rt2_typed
-
-alpha=`creddy --keyid --cert $keyloc/Alpha_ID.pem`
-bob=`creddy --keyid --cert $keyloc/Bob_ID.pem`
-
-access_fileA="[keyid:$alpha].role:access([string:'read'],[urn:'file//fileA'])"
-bob_prin="[keyid:$bob]"
-
-#[keyid:Alpha].role:access([string:'read'],[urn:'file//fileA']) <-?- [keyid:bob] (yes)
-echo "===good============ Alpha.access(read,fileA)<-?-Bob  yap "
-$eloc/abac_prover_yap  --keystore $keyloc --role "$access_fileA" --principal "$bob_prin"
Index: examples/access_rt2_typed/rr
===================================================================
--- examples/access_rt2_typed/rr	(revision da5afdf4d61c978dbd17b9d6f20e5a45dcab870a)
+++ examples/access_rt2_typed/rr	(revision e88c95b78d0ef3b0c3afe6668f42dedbb47f52a6)
@@ -17,5 +17,5 @@
 
 ## dump all credentials -- does not work
-#$eloc/abac_prover_yap  --keystore $keyloc --dump creds_dump
+$eloc/abac_prover_yap  --keystore $keyloc --dump creds_dump
 
 #[keyid:Alpha].role:access([string:'read'],[urn:'file//fileA']) <-?- [keyid:bob] (yes)
@@ -28,4 +28,4 @@
 echo "===good============ Alpha.team(proj2)<-?-Joe  yap "
 #[keyid:alpha].oset:team([string:'proj2'])<-[keyid:Joe]
-eloc/abac_prover_yap  --keystore $keyloc --role "$team_proj2" --principal "$joe_prin"
+$eloc/abac_prover_yap  --keystore $keyloc --role "$team_proj2" --principal "$joe_prin"
 
