new wrapper format modifications for magma