guard againts nil handlers