some sensible validation