move the pid resource to its own module.