update for detecting headers

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