materials init, still buggy