working on pid

this is going to be crazy