texture update stuff (work in progress)