changed stuff to allow adding support of wildcard permissions