updated software to take an access policy as argument