adapter, use sed in-place-edit