wrote mesh module (using ghost)