starting a hook for my php work
  this needs a complete rewrite...