fix connect static bug  and add default root fix #49