rewrite ams-policy