strip header works without seg fault