updated source facility to use new mat creation api