* change %s to %d * secusity issue, add try-finally block Co-authored-by: liuxinyu <xinyu6@illinois.edu>