almost rewritten. header sends fine.