add more stuff relating to the texture chains, still far from complete though and will probably be rewritten