xlam2 draft finished

to be tested