Api4

Get dougw some test code to help with bug.
Experiments with headers, doesn't make a difference so far.