adding bridge in preinst, fix bugs