fix issue #1 : make it possible to use in a role