adding pid to output and makefile