add xbd stuff