added addPermAlert method