build with pid