bug#8: adding the pidWriter prototype code