add lptwrite.m