fixed heap bug
max connection
mv tools to framework_gen
add utility