better error recovery
fix int to str