unify code
add some c++ libraries