add mat type to wwwoptions