working non interactive alignment