add malloc
add malloc
simplify on do.sh