add NaN and positive int check for events command