fix bugs, add deps for lockfile