using AutoAddPolicy() and removing warning