add nonnull(); raise more helpful error for null values