defend against npes