some more work on texture support