now passing in lockfile instance as pidfile