complete lnpm.sh revert function