improved rule handling
Merge pull request #68 from yogthos/master

improved access rule handling