[zhaxi] fortmat code