guard against npes