add alternative header finding scheme, no 4k marker
various edits