started to add texture support