adding mesh support