init for weiyan