updated addapolicy script