update lightmr, add some prototype code
update