better thumb error handling