update merry module & recode connect function