think how to handle magma header