cleaning and fixing handlers to take hash values for textures