watch for TypeError from int