improve resiliency to bad form input