rewrite yaimgfb for header modification