implement ms LWRP using library code