changed headers processing to not require headers AND data