build mnist files backend