rework header check
fix CHECK_HEADER