minor updates on the 2layer demixing algo