add reset and connect funtion
fix build
add license