expand header detection

Signed-off-by: James Rubingh <james@wrive.com>