updating for spam protection api changes