various material and lexing stuff
image/material laoding