add politeness.lock engine and debug LPS file saving