changed code to use embedded policy files