catch some bad input