added material loading