optimized texturepack support