rescue exceptions from bad inputs