Fixing profile header and extracting to partial

Signed-off-by: Alan Gardner <alan@armoin.com>